package com.example.orderform.lmpl;

import com.example.orderform.dao.ReceivedMapper;
import com.example.orderform.server.ReceivedServer;
import com.example.orderform.vo.Order;
import com.example.orderform.vo.Refund;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ReceivedLmpl implements ReceivedServer {
    @Autowired
    ReceivedMapper receivedMapper;


    @Override
    public List<Order> receivedchals(int q,int j,int userid) {
        return receivedMapper.receivedchals(q, j,userid);
    }

    @Override
    public int rececha(int userid) {
        return receivedMapper.rececha(userid);
    }

    @Override
    public Order orderxq(int orderid) {
        return receivedMapper.orderxq(orderid);
    }

    @Override
    public List<Order> receordernumber(String ordernumber) {
        return receivedMapper.receordernumber(ordernumber);
    }

    @Override
    public int tuikuang(String ordernumber, String reason) {
        return receivedMapper.tuikuang(ordernumber,reason);
    }

    @Override
    public List<Order> tuikuancha(int userid) {
        return receivedMapper.tuikuancha(userid);
    }

    @Override
    public int shouhuogai(int orderid) {
        return receivedMapper.shouhuogai(orderid);
    }

    @Override
    public int addrece(String ordernumber, String servicetype, String cargostatus, String price, String refundreason, String refundinstructions, String shoopname, String ordercolor, String ordersieze, String picture) {
        return receivedMapper.addrece(ordernumber, servicetype, cargostatus, price, refundreason, refundinstructions, shoopname, ordercolor, ordersieze, picture);
    }

    @Override
    public int updashouhuotongyi(int id) {
        return receivedMapper.updashouhuotongyi(id);
    }

    @Override
    public int updacopytongyi(int orderid) {
        return receivedMapper.updashouhuotongyi(orderid);
    }

    @Override
    public int updashouhuobutongyi(int orderid) {
        return receivedMapper.updashouhuotongyi(orderid);
    }

    @Override
    public List<Refund> seleshouhuotongyi(int userid) {
        return receivedMapper.seleshouhuotongyi(userid);
    }

    @Override
    public List<Refund> seleshouhuo(int userid) {
        return receivedMapper.seleshouhuo(userid);
    }


}
